package yh.design.strategy.impl;

import org.springframework.stereotype.Service;
import yh.design.common.res.APIResult;
import yh.design.strategy.IPayment;
import yh.design.model.UnionPayDTO;

import java.math.BigDecimal;

/**
 * 银联支付
 * @author: zyh
 * @date: 2025/4/12 22:53
 **/
@Service("unionPayment")
public class UnionPayment implements IPayment<UnionPayDTO> {

    @Override
    public APIResult executePay(UnionPayDTO payInfo, BigDecimal payAmount) {
        //1.商户配置信息获取
        System.out.println("商户配置信息获取");
        //2.调用银联支付接口
        System.out.println("调用银联支付接口");
        //3.记录消费账单
        System.out.println("记录消费账单");

        return APIResult.success();
    }
}
